//
//  Server.m
//  VidAgent
//
//  Created by Andre Kasper on 23.05.11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
// 

#import "Server.h"
#import <Foundation/Foundation.h>
#import "VidSender.h"
#import "NSConnection.h"


@implementation Server

-(void) startServer {
	NSAutoreleasePool *pool;
    pool = [[NSAutoreleasePool alloc] init];
    VidSender *obj;
    obj = [[[VidSender alloc ] init] autorelease];
	
    NSConnection *conn;
    conn = [NSConnection networkServiceConnectionWithName:@"my_server"
                                               rootObject:obj ];
	[[NSRunLoop mainRunLoop] run];
    [pool drain];
}

@end
